home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Burning & Media
/
GB-PVR 1.2.13
/
GBPVR10213.msi
/
Cabs.w1.cab
/
GuideListingLine.cs439
< prev
next >
Wrap
Text File
|
2007-02-14
|
3KB
|
98 lines
/// <summary>
/// This class is the object for creating a display line in the guide
/// </summary>
using gbweb.classes;
namespace gbweb.classes
{
public class GuideListingLine
{
private const string fill1 = "<div class=\"";
private string displayClass = "listing";
private const string fill2 = "\" style=\"";
private string displayStyle = "margin-left: ";
private int displayMargin = 1;
private const string fill3 = "%; width:";
private int displayWidth = 0;
private const string fill4 = "%\">";
private string programmeInfo = "";
private const string fill5 = "</div>";
public GuideListingLine()
{
}
public GuideListingLine(string DisplayClass, string DisplayStyle, int DisplayMargin, int DisplayWidth,
string ProgrammeInfo)
{
displayClass = DisplayClass;
displayStyle = DisplayStyle;
displayMargin = DisplayMargin;
displayWidth = DisplayWidth;
programmeInfo = ProgrammeInfo;
}
public string getDisplayLine()
{
string dispLine = string.Empty;
dispLine += fill1;
dispLine += displayClass;
dispLine += fill2;
dispLine += displayStyle;
dispLine += displayMargin;
dispLine += fill3;
dispLine += displayWidth;
dispLine += fill4;
dispLine += programmeInfo;
dispLine += fill5;
return dispLine;
}
public string getDisplayClass()
{
return displayClass;
}
public void setDisplayClass(string a)
{
displayClass = a;
}
public string getDisplayStyle()
{
return displayStyle;
}
public void setDisplayStyle(string a)
{
displayStyle = a;
}
public int getDisplayMargin()
{
return displayMargin;
}
public void setDisplayMargin(int a)
{
displayMargin = a;
}
public int getDisplayWidth()
{
return displayWidth;
}
public void setDisplayWidth(int a)
{
displayWidth = a;
}
public string getProgrammeInfo()
{
return programmeInfo;
}
public void setProgrammeInfo(string a)
{
programmeInfo = a;
}
}
}